Memory Issue?

I am writing a script that first adds new objects to a module, then edits new and old objects the module, and finally sorts all of the objects in the module based on the object text (by moving every object, it's not a very elegant algorithm). Unfortunately, I am having issues. Occasionally it works fine and I get a dialog box that indicates that the script has completed, but most of the time I have DOORS freeze on me. After months of having to force quit DOORS because of the freezing, I discovered that the dialog box at the end of the script does appear, but it disappears immediately leaving DOORS waiting for input to a dialog box I cannot see. I can mouse over the dialog box and click the "OK" button, but I pretty much have to randomly click to get it to close. Once the button finally gets clicked, everything works fine as if nothing weird happened. Any ideas what's going on?
SystemAdmin - Tue Oct 16 17:49:42 EDT 2012

Re: Memory Issue?
Martin_Hunter - Wed Oct 17 01:41:04 EDT 2012

Sounds like a hide instruction maybe to blame but you probably need to post your code here for further help with this issue.

Martin